#include "QyRenderAnimation.h"

using namespace QyRender;

QyGL::Texture * Animation::currentTexture() const {

    return ( p_currentFrame < p_textures.count() ) ? p_textures[p_currentFrame] : 0;
}

void Animation::setCurrentFrame( quint32 currentFrame ) {

    if ( currentFrame < p_textures.count() )
        p_currentFrame = currentFrame;

}
